class TypeEntity {
	List<TypeData> data;
	String message;
	int status;

	TypeEntity({this.data, this.message, this.status});

	TypeEntity.fromJson(Map<String, dynamic> json) {
		if (json['data'] != null) {
			data = new List<TypeData>();(json['data'] as List).forEach((v) { data.add(new TypeData.fromJson(v)); });
		}
		message = json['message'];
		status = json['status'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		if (this.data != null) {
      data['data'] =  this.data.map((v) => v.toJson()).toList();
    }
		data['message'] = this.message;
		data['status'] = this.status;
		return data;
	}
}

class TypeData {
	String name;
	String id;

	TypeData({this.name, this.id});

	TypeData.fromJson(Map<String, dynamic> json) {
		name = json['name'];
		id = json['id'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['name'] = this.name;
		data['id'] = this.id;
		return data;
	}
}
